<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>匹配过程 - 稳定匹配可视化系统</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/process.css">
</head>
<body>
    <!-- 顶部导航栏 -->
    <header class="navbar">
        <div class="container">
            <h1 class="logo">稳定匹配可视化系统</h1>
            <nav class="nav-menu">
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="results.html">匹配结果</a></li>
                    <li><a href="process.html" class="active">匹配过程</a></li>
                    <li><a href="upload.html">数据上传</a></li>
                    <li><a href="execute.html">算法执行</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- 主要内容区域 -->
    <main class="main-content">
        <div class="container">
            <h2>匹配过程</h2>
            
            <!-- 匹配过程控制面板 -->
            <section class="process-controls">
                <h3>过程控制</h3>
                <div class="controls">
                    <button id="prev-step" class="btn btn-secondary"><< 上一步</button>
                    <button id="play-pause" class="btn btn-primary">播放</button>
                    <button id="next-step" class="btn btn-secondary">下一步 >></button>
                    <button id="reset" class="btn btn-secondary">重置</button>
                    <div class="speed-control">
                        <label for="speed">倍速:</label>
                        <select id="speed">
                            <option value="0.5">0.5x</option>
                            <option value="1" selected>1x</option>
                            <option value="2">2x</option>
                            <option value="5">5x</option>
                        </select>
                    </div>
                </div>
            </section>

            <!-- 当前状态展示 -->
            <section class="current-status">
                <h3>当前状态</h3>
                <div class="status-info">
                    <div class="status-item">
                        <span class="label">迭代次数:</span>
                        <span id="iteration-count">0</span>
                    </div>
                    <div class="status-item">
                        <span class="label">重启次数:</span>
                        <span id="restart-count">0</span>
                    </div>
                    <div class="status-item">
                        <span class="label">Blocking pairs:</span>
                        <span id="blocking-pairs">0</span>
                    </div>
                </div>
            </section>

            <!-- 步骤可视化区域 -->
            <section class="step-visualization">
                <h3>步骤可视化</h3>
                <div id="step-container">
                    <p>正在加载匹配过程数据...</p>
                </div>
            </section>
        </div>
    </main>

    <!-- 底部信息栏 -->
    <footer class="footer">
        <div class="container">
            <p>&copy; 2025 稳定匹配可视化系统. All rights reserved.</p>
        </div>
    </footer>

    <script src="js/main.js"></script>
    <script src="js/step-visualizer.js"></script>
    <script src="js/process.js"></script>
</body>
</html>